updating oE pathname

pathname

include filesys.e 
namespace filesys 
public function pathname(sequence path) 

returns the directory name of a fully qualified filename.

Parameters:
  1. path : the path from which to extract information
  2. pcd : If not zero and there is no directory name in path then "." is returned. The default (0) will just return any directory name in path.
Returns:

A sequence, the full file name part of path.

Comments:

The host operating system path separator is used.

Example 1:
fname = dirname("/opt/euphoria/docs/readme.txt") 
-- fname is "/opt/euphoria/docs" 
See Also:

driveid, filename, pathinfo

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu